package com.example.downloadupload.animation;

import org.vaadin.navigator7.Page;

import com.example.downloadupload.enumerations.CategoriesEnum;
import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;


public class Menu extends VerticalLayout {

	public Menu(){


		for(CategoriesEnum categoriesEnum : CategoriesEnum.values()){
			
			VerticalLayout v = new VerticalLayout();
			v.setWidth("250px");
			
			v.setStyleName("gris");
			ButtonCategorie one = new ButtonCategorie("this is cat","");
			ButtonCategorie two = new ButtonCategorie("this is cat","");
			ButtonCategorie three = new ButtonCategorie("this is cat","");
			
			v.addComponent(one);
			v.addComponent(two);
			v.addComponent(three);



			ButtonCategorie buttonfortest = new ButtonCategorie(categoriesEnum.toString(),"big");
			addComponent(new CategorieButton(buttonfortest,v));
		}
	}
}
